Advanced Tag Replacer (REGEX)
The Advanced Tag Replacer provides powerful search and replace functionality for tags, attributes, and content using free text or REGEX patterns across your entire Flare project.
To use the Advanced Tag Replacerβ
- Click Advanced Tag Replacer from the Cleanup tab.
- Enter your search text in the Search for field:
- Use free text for simple searches
- Use REGEX patterns for advanced matching
- Click Search tags to find all matching tags in your project.
- Review the list of tags that will be affected.
- Select the action you want to perform:
- Replace - Replace with a different tag
- Unbind - Remove the tag but keep its content
- Delete - Remove the tag and all its content
- Wrap - Wrap the tag in another tag
- Enter or select the replacement tag (if applicable).
- Click Execute to apply changes.
Using REGEX Patternsβ
REGEX (Regular Expressions) allows you to match complex patterns:
Common REGEX Examplesβ
<p class="Note.*">- Match all paragraph classes starting with "Note"<span style=".*color.*">- Match spans with any color styling<div.*id="temp.*">- Match divs with IDs starting with "temp"
REGEX Tipsβ
- Use
.*to match any characters - Use
^to match the start of a string - Use
$to match the end of a string - Use
[0-9]to match any digit - Test your REGEX patterns before executing
Actions Explainedβ
Replaceβ
Replaces the matched tag with a different tag while preserving content and compatible attributes.
Example: Replace <b> with <strong>
Unbindβ
Removes the tag wrapper but keeps all content inside.
Example: <span class="temp">text</span> becomes text
Deleteβ
Removes both the tag and all its content.
Warning: This permanently deletes content. Use carefully!
Wrapβ
Wraps the matched tag in another tag.
Example: Wrap <p> in <div class="container">
Safety Featuresβ
- Preview: See what will be affected before executing
- Undo: Reverse changes immediately after execution
- Backup: Create a backup before major replacements
Use Casesβ
- Clean up legacy HTML from imports
- Standardize inconsistent tagging
- Remove temporary markup classes
- Batch update styling approaches
- Fix bulk tagging issues
Tipsβ
- Always back up your project before major replacements
- Test on a small subset first when using REGEX
- Use the preview to verify matches before executing
- Keep the undo option available until you verify results
- Document your REGEX patterns for future use